package org.dreamfly.core.service;

import org.dreamfly.core.bean.SzActivity;
import org.dreamfly.core.page.PageResultSet;

/**
 * Created by IntelliJ IDEA.
 * User: Gin
 * Date: 2010-10-10
 * Time: 0:57:29
 * To change this template use File | Settings | File Templates.
 */
public interface ActivityService {
    /**
     * 添加动作库
     * @param activity 需要加入数据库的动作库
     */
    void saveOrUpdate(SzActivity activity);
    
    /**
     * 删除动作库
     * @param id
     */
    void delete(Long id);
    
	/**
     * 关键字搜索
     * @param activity 含有搜索信息的动作库对象
	 * @param serverName TODO
     * @return 包含结果集和分页信息的数据集
     */
	PageResultSet<SzActivity> normalSearch(SzActivity activity, Long pageSize, Long page, String serverName);
	
	/**
	 * 按id获取对象
	 * 
	 */
	SzActivity findDetail(Long id);
    void addActionInfo(SzActivity activity);
    void modifyActionInfo(SzActivity  activity);

}
